package cn.edu.nchu.fragmentdemo.bean;

import android.content.Context;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.misc.BaseDaoEnabled;
import com.j256.ormlite.table.DatabaseTable;

import cn.edu.nchu.fragmentdemo.db.dao.WayPointDao;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/*
 * 航点数据
 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
@DatabaseTable(tableName = "waypoint")
public class WayPoint extends BaseDaoEnabled {

    @DatabaseField(columnName = "id", generatedId = true)
    private Integer id;
    @DatabaseField(columnName = "uk")
    private String uk;
    @DatabaseField(columnName = "route_id", foreign = true, foreignAutoRefresh = true)
    private Route route;
    @DatabaseField(columnName = "flight_speed")
    private Double flight_speed;//飞行速度
    @DatabaseField(columnName = "yaw_angle")
    private Integer yaw_angle;//飞行器偏航角
    @DatabaseField(columnName = "hover_time")
    private Integer hover_time;//悬停时间
    @DatabaseField(columnName = "ascent_speed")
    private Double ascent_speed;//上升速度
    @DatabaseField(columnName = "descent_speed")
    private Double descent_speed;//下降速度
    @DatabaseField(columnName = "waypoint_longitude")
    private Double wayPointLongitude;//航路点经度
    @DatabaseField(columnName = "waypoint_latitude")
    private Double wayPointLatitude;//航路点纬度
    @DatabaseField(columnName = "route_number")
    private Integer routeNumber;//航点有效性
    @DatabaseField(columnName = "waypoint_effectivenessr")
    private Integer wayPointEffectiveness;//航点有效性
    @DatabaseField(columnName = "waypoint_number")
    private Integer wayPointNumber;//航路点号
    @DatabaseField(columnName = "waypoint_height")
    private Integer wayPointHeight;//航路点高度
    @DatabaseField(columnName = "waypoint_magnetic")
    private Integer wayPointMagnetic;//航路点磁差
    @DatabaseField(columnName = "waypoint_name")
    private String wayPointName;//航点名称



}
